import request from '@/utils/request'

// 查询激活码增删改查列表
export function listActivationCodes(query) {
  return request({
    url: '/system/ActivationCodes/list',
    method: 'get',
    params: query
  })
}

// 查询激活码增删改查详细
export function getActivationCodes(id) {
  return request({
    url: '/system/ActivationCodes/' + id,
    method: 'get'
  })
}

// 新增激活码增删改查
export function addActivationCodes(data) {
  return request({
    url: '/system/ActivationCodes',
    method: 'post',
    data: data
  })
}

// 修改激活码增删改查
export function updateActivationCodes(data) {
  return request({
    url: '/system/ActivationCodes',
    method: 'put',
    data: data
  })
}

// 删除激活码增删改查
export function delActivationCodes(id) {
  return request({
    url: '/system/ActivationCodes/' + id,
    method: 'delete'
  })
}
